<?php
namespace app\admin\validate;

/**
 * 验证器
 */
use think\Validate;

class WelfareM extends Validate
{
    protected $rule = [
        'names' => 'require',
        'type' => 'require',
        'num'  => 'require|>=:1',
    ];

    protected $message = [
        'names.require' => '接收人名称必须',
        'type.require'  => '请选择或设置福利类型',

        'num.require'  => '数量必须存在',
        //'num.>='  => '数量必须大于',
    ];



}
